partlen = BUFFER_SIZE-1-buf.len;
if ( buf.len + newlen + 1 > BUFFER_SIZE )
{
- strncpy( buf.data+buf.len, txt2, partlen );
+ strncpy( (char *) buf.data+buf.len, txt2, partlen );
buf.data[BUFFER_SIZE-1] = '\0';
txt2 += partlen;
newlen -= partlen;
NEW_BUFFER( &buf );
}
else {
- strcpy( buf.data+buf.len, txt2 );
+ strcpy( (char *) buf.data+buf.len, txt2 );
buf.len += newlen;
txt2 = NULL;
}